

# 12.9 do0 编写替换的中断程序的具体内容

assume cs:code

ccode segment
start:	mov ax,cs
		mov ds,ax
		mov ssi,offset do0
		mov ax,0
		mov di,200h
		mov cx,offset do0end-offset do0
		cld
		rep movsb

		mov ax,4c00h
		int 21h

	do0:jmp short do0start
		db "overflow"

do0Start:	mov ax,cs
			mov ds,ax
			mov si,200h

			mov ax,0b800h
			mov es,ax
			mov di,12*160 + 36*2

			mov cx,9

		s:	mov al,[si]
			mov es:[di],al
			inc si
			add di,2
			loop s

			mov ax,4c00h
			int 21h

do0end:nop
code ends
end start